import axios from "axios"

axios.defaults.baseURL = "/api"

//获取商品分类
export const getCategory = () => axios.get("/getproductlist?categoryid=0")

//获取商品详情

export const getDetail = (id) => axios.get(`/getproduct?productid=${id}`)